//
//  TZShowDetailCell.m
//  BSBDJ
//
//  Created by user on 16/5/28.
//  Copyright © 2016年 Burning. All rights reserved.
//

#import "TZShowDetailCell.h"
#import "TZDataItem.h"
#import "TZUserItem.h"
#import "UIImage+image.h"
@interface TZShowDetailCell()
@property (weak, nonatomic) IBOutlet UIImageView *icon_Imagev;
@property (weak, nonatomic) IBOutlet UILabel *name_Label;
@property (weak, nonatomic) IBOutlet UILabel *content_Label;

@end



@implementation TZShowDetailCell


- (void)setDataItem:(TZDataItem *)dataItem{
    _dataItem = dataItem;
    [self.icon_Imagev sd_setImageWithURL:[NSURL URLWithString:dataItem.user.profile_image] placeholderImage:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
        self.icon_Imagev.image = [image circleImage];
    }];
    self.name_Label.text = dataItem.user.username;
    self.content_Label.text = dataItem.content;
}

@end
